<template>
  <div class="all-left">
    <div class="all-item" v-for="items in NewList" :key="items.src">
      <div class="item-img">
        <img :src="items.src" alt="" />
      </div>
      <div class="item-txt">
        <p>{{ items.title }}</p>
        <div>{{ items.content }}</div>
        <span>{{ items.timer }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "AllLeft",
  props: {
    //all数据
    NewList: {
      type: Array
    },

    //
  },
  data() {
    return {
     
    };
  },
};
</script>

<style lang="less" scoped>
.all-left {
  width: 60%;
  margin-top: 25px;
  .all-item {
    width: 90%;
    margin: 30px auto;
    display: flex;
    .item-img {
      padding-left: 5px;
      flex: 2;
      img {
        width: 100%;
      }
    }
    .item-txt {
      flex: 10;
      padding-left: 20px;
      p {
        font-size: 17px;
      }
      div {
        font-size: 12px;
        padding-top: 15px;
        color: #a4a4a4;
      }
      span {
        font-size: 12px;
        display: block;
        color: #a4a4a4;
      }
    }
  }
  .all-item:hover {
    box-shadow: 2px 2px 5px #ccc;
  }
}
</style>